package p.ithorns.integration.transform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ithorns
 * @since 2019-11-12
 */
public class TranMsg implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 消息id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 业务ID
     */
    private String bizId;

    /**
     * 业务类型
     */
    private String bizType;

    /**
     * 消息内容
     */
    private String msg;

    /**
     * 消息描述
     */
    private String msgDesc;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * 重试次数
     */
    private Integer tryCount;

    /**
     * 消息状态
     */
    private Integer status;

    public TranMsg() {}

    public TranMsg(String bizId, String bizType, String msg, String msgDesc, Date createTime, Date modifyTime, Integer tryCount, Integer status) {
        this.bizId = bizId;
        this.bizType = bizType;
        this.msg = msg;
        this.msgDesc = msgDesc;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
        this.tryCount = tryCount;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsgDesc() {
        return msgDesc;
    }

    public void setMsgDesc(String msgDesc) {
        this.msgDesc = msgDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getTryCount() {
        return tryCount;
    }

    public void setTryCount(Integer tryCount) {
        this.tryCount = tryCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TranMsg{" +
                "id=" + id +
                ", bizId=" + bizId +
                ", bizType=" + bizType +
                ", msg=" + msg +
                ", msgDesc=" + msgDesc +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", tryCount=" + tryCount +
                ", status=" + status +
                "}";
    }
}
